package com.maidou.qiantai.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品评论对象 os_spu_comment
 * 
 * @author maidou
 * @date 2024-03-21
 */
public class SpuComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户信息表id 主键 */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long spuId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 评论id */
    @Excel(name = "评论id")
    private Long commentId;

    /** 上级id */
    @Excel(name = "上级id")
    private Long pId;

    /** 图集id（逗号隔开） */
    @Excel(name = "图集id", readConverterExp = "逗=号隔开")
    private String imagesId;

    /** 类型（0-商家） */
    private Integer type;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long upvote;

    /** 评论 */
    @Excel(name = "评论")
    private String coment;

    /** 逻辑删除，0为未删除，1为删除 */
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSpuId(Long spuId) 
    {
        this.spuId = spuId;
    }

    public Long getSpuId() 
    {
        return spuId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setImagesId(String imagesId) 
    {
        this.imagesId = imagesId;
    }

    public String getImagesId() 
    {
        return imagesId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setUpvote(Long upvote) 
    {
        this.upvote = upvote;
    }

    public Long getUpvote() 
    {
        return upvote;
    }
    public void setComent(String coment) 
    {
        this.coment = coment;
    }

    public String getComent() 
    {
        return coment;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spuId", getSpuId())
            .append("memberId", getMemberId())
            .append("commentId", getCommentId())
            .append("pId", getpId())
            .append("imagesId", getImagesId())
            .append("type", getType())
            .append("upvote", getUpvote())
            .append("coment", getComent())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
